package com.xinke.juc.case03;

import com.xinke.juc.Constants;
import com.xinke.juc.util.FileReader;
import lombok.extern.slf4j.Slf4j;


/**
 * @Author：xinke
 * @Date：2025/9/30
 * @Desc: start 与 run
 */
@Slf4j
public class TestStartAndRunMethod {
    public static void main(String[] args) {
        Thread t1 = new Thread("t1"){
            @Override
            public void run() {
                log.debug(Thread.currentThread().getName());
                FileReader.read(Constants.JDK_FULL_PATH);
            }
        };
//        t1.run();
        t1.start();
        log.debug("do other things..");
    }
}
